package com.yungu.swift.api.base;

/**
 * @author : cuixiuyin
 * @date : 2019/6/13
 */
public enum ApiErrorEnum {

    /**
     * APi 模块错误码信息返回
     */
    SIGN_ERROR(1000, "签名出错"),
    NOT_SIGN(1001, "缺少签名sign"),
    NOT_APPID(1002, "缺少参数appid"),
    NOT_NONCESTR(1003, "缺少随机数"),
    DECRYPT_ERROR(1004, "数据解密失败"),
    NOT_LOGIN(1010, "登录后才能操作"),
    LOGIN_EXPIRED(1011, "登录过期，请重新登录"),
    USER_STATUS_ERROR(1012, "用户状态异常"),
    PIC_THEFT(1013, "图片盗链，不安全的图片访问"),
    PARAM_ERROR(1014, "参数异常"),
    TOKEN_NO_SAFETY(1015, "您的登陆信息异常，请重新登录"),
    NO_SUPPORT_REQUEST(1016, "不支持的请求方式"),
    LOGIN_TOKEN_INVALID(1017, "accessToken 失效"),
    NOT_RID(1018, "缺少参数rid"),
    INTERFACE_REPLAY(1019, "接口重放异常"),
    WX_APPLET_DECRYPT_ERROR(1020, "解析微信敏感数据失败"),

    private Integer code;
    private String msg;

    ApiErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
    }
